﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<div class="w_980">
	<!--back_box-->
	<div class="back_box clearfix">
    	<!--left-->
    	        <% 
            Html.RenderPartial("~/Views/Shared/VipCenterList.ascx");
        %>
    	<!--right-->
        <div class="back_main">
        	<h3>当前订单进度</h3>
            <div class="old_order_box">
                <!--table_box-->
                <div class="table_box">
                	<table>              
                    <% 
                    
                        BIZ.LibraryBookIndentOper bio = new BIZ.LibraryBookIndentOper();
                        IList li = bio.userGetCurrentList(((DomainModel.UserInfo)Session["user"]).u_id);    
                    %>                                                                  
                    	<thead>
                        	<tr>
                            	<th width="230">书名</th>
                            	<th width="110" class="txt_left">相关资料</th>
                            	<th width="100" class="txt_left" style="padding-left:10px;">作者</th>
                            	<th width="130" class="txt_left" style="padding-left:10px;">下单时间</th>
                            	<th>订单状态</th>
                            </tr>
                        </thead>
                        <tbody>
                        <%
                            foreach (Hashtable tb in li) 
                            { 
                        %>
                            <tr>
                            	<td><a href="/Search/detail.html?id=<%=tb["lb_id"] %>" class="book_title_color"><%=tb["lb_bookName"]%></a></td>
                            	<td><p>
                                <% 
                                if (tb["lb_aboutEbook"] != null)
                                {
                                    if (tb["lb_aboutEbook"].ToString() != "")
                                    {
                                        Response.Write("<a href=\"" + BIZ.StringTool.changeImgUrl(tb["lb_aboutEbook"].ToString()) + "\">电子书</a>");
                                    }
                                }
                                else if (tb["lb_aboutMp3"] != null)
                                {
                                    if (tb["lb_aboutMp3"].ToString() != "")
                                    {
                                        Response.Write("<a href=\"" + BIZ.StringTool.changeImgUrl(tb["lb_aboutMp3"].ToString()) + "\">音频</a>");
                                    }
                                }
                                else
                                    Response.Write("无");
                                %>
                                </p></td>
                            	<td><%=tb["lb_author"]%></td>
                            	<td><%=tb["lbi_time"]%></td>
                            	<td class="txt_center"><%=Enum.GetName(typeof(DAL.Enums.bookstate), int.Parse(tb["lbi_state"].ToString()))%></td>
                            </tr>
                        <%
                            }
                        %>
                         
                        </tbody>
                    </table>
                </div>
  
            </div>
        </div>
    </div>
</div>


</asp:Content>
